home *** CD-ROM | disk | FTP | other *** search
/ F1 Licenseware / F1 Licenseware - Volume 1.iso / disks / 028.dms / 028.adf / Features_of_the_Shell / Command_Line_Characters next >
Text File  |  1992-02-26  |  3KB  |  62 lines

  1.                         Command Line Characters
  2.  
  3. These are specially recognised Shell characters.  You should not include
  4. these in filenames or problems could arise.
  5.  
  6. Colon (:)       This means that the filename is a device.  A device can refer 
  7.                 to a physical device, like Df0: (the internal disk drive) or
  8.                 an "Assigned" device, like C: (the boot disk's C drawer).
  9.                 Please read the description of the command Assign for more
  10.                 information.
  11.  
  12.  
  13. Slash (/)       The slash has two uses.  First, it is the directory 
  14.                 separator.  When you specify a directory like SYS:Example
  15.                 there is no need for a separator (because of the colon).  
  16.                 But a specification like SYS:Example/Example2 means a 
  17.                 directory within Example called Example2.  If you forget
  18.                 to put in a separator the computer will be fooled.   Two
  19.                 common errors are like these
  20.     
  21.                         Df0:ExampleExample2
  22.  
  23.                 which means the drawer called ExampleExample2 on the disk in
  24.                 drive Df0:. and
  25.  
  26.                         Df0:Example Example2
  27.  
  28.                 This one means a file called Example2 in the drawer Example.
  29.  
  30.                 The second use is with the CD command.  Typing CD / moves
  31.                 up one level in the directory structure.  Another way to
  32.                 think of it is moving back one step towards the root 
  33.                 directory.  If your current directory is
  34.  
  35.                         Df0:Example/Example2
  36.  
  37.                  typing CD / will move you out of the current directory, 
  38.                  towards the root directory (Df0:).  Your current directory
  39.                  is now
  40.  
  41.                         Df0:Example
  42.  
  43.  
  44. Semicolon (;)    The semicolon is the AmigaDOS equivalent to BASIC's Rem
  45.                  statement.  It is also similar to enclosing a line in C or
  46.                  AREXX with the characters /* and */.  It lets you add a 
  47.                  comment to something.  The only real use for this is in a
  48.                  script file.
  49.  
  50.  
  51. Asterisk(*)      (NOT called an asterix as some people think).  This refers
  52.                  to the current CLI window.  Echo-ing a line to * will print
  53.                  it in the current window.
  54.                
  55.  
  56. Back Apostrophe  This executes CLI commands from within a string.  Not to be
  57.      (`)         confused with the ' apostrophe.  When the line is printed,
  58.                  the command after the back apostrophe is executed.  The 
  59.                  command must be enclosed in back quotes.
  60.  
  61.                         
  62.